using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevPlanroutedataTList, table list:dev_planroutedata_t 
	/// </summary>
	internal class DevPlanroutedataTList : BaseWritableEntities<DevPlanroutedataT>, IDevPlanroutedataTList
	{
		private DevPlanroutedataTQueryDAO _queryDAO;
		private DevPlanroutedataTWritingDAO _writeDAO;

		public DevPlanroutedataTList(DevPlanroutedataTQueryDAO queryDao, DevPlanroutedataTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlanroutedataT> GetDevPlanroutedataTAllItems()
		{
			return _queryDAO.GetDevPlanroutedataTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlanroutedataT> GetDevPlanroutedataTItemsById(int id)
		{
			return _queryDAO.GetDevPlanroutedataTItemsById(id);
		}

		/// <summary>
		/// 根据planId，获取所有DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlanroutedataT> GetDevPlanroutedataTItemsByPlanId(int planId)
		{
			return _queryDAO.GetDevPlanroutedataTItemsByPlanId(planId);
		}

		/// <summary>
		/// 根据pipeMuid，获取所有DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevPlanroutedataT> GetDevPlanroutedataTItemsByPipeMuid(int pipeMuid)
		{
			return _queryDAO.GetDevPlanroutedataTItemsByPipeMuid(pipeMuid);
		}

		/// <summary>
		/// 增加一行DevPlanroutedataT,table item:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlanroutedataT(DevPlanroutedataT item)
		{
			return this._writeDAO.AddDevPlanroutedataT(item);
		}

		/// <summary>
		/// 增加多行DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevPlanroutedataTs(DevPlanroutedataT[] items)
		{
			return this._writeDAO.AddDevPlanroutedataTs(items);
		}

		/// <summary>
		/// 更新一行DevPlanroutedataT,table item:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlanroutedataT(DevPlanroutedataT item)
		{
			return this._writeDAO.UpdateDevPlanroutedataT(item);
		}

		/// <summary>
		///  更新多行DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevPlanroutedataTs(DevPlanroutedataT[] items)
		{
			return this._writeDAO.UpdateDevPlanroutedataTs(items);
		}

		/// <summary>
		/// 删除一行DevPlanroutedataT,table item:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlanroutedataT(DevPlanroutedataT item)
		{
			return this._writeDAO.DeleteDevPlanroutedataT(item);
		}

		/// <summary>
		///  删除多行DevPlanroutedataT,table items:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlanroutedataTs(DevPlanroutedataT[] items)
		{
			return this._writeDAO.DeleteDevPlanroutedataTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevPlanroutedataT,table entity:dev_planroutedata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevPlanroutedataTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevPlanroutedataTByIds(ids);
		}

	}
}
